/**
 * @author jiangzhuang jiangzhuang1987@gmail.com
 * @date 2010-4-21
 * @version v1.0
 * 
 */
package com.jz.model;

import java.io.Serializable;
import java.util.List;

import com.jz.aspectj.annotation.Lazyload;
import com.jz.formm.Nut;

public class Model implements Serializable,Nut {
	
	private static final long serialVersionUID = 3443459568296702979L;
	
	private Integer number;
	
	private Integer kind;
	
	private String label;//标签
	
	private String description;
	
	public List<Test> testList;
	
	public List<Test> getTestList() {
		return testList;
	}
	
	
	
	
	public void setTestList(List<Test> testList) {
		this.testList = testList;
	}




	@Lazyload(manager = "testManage")
	public List<Test> getLazyTestList() {
		return testList;
	}



	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public Integer getKind() {
		return kind;
	}

	public void setKind(Integer kind) {
		this.kind = kind;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Comparable getPrimaryValue() {
		return number;
	}

	public Object getValueByName(String variableName) {
		return "number".equals(variableName) ? number : null;
	}
}
